import url from './url'
import ajax from './ajax'
export function getHomeBanner(){
    const bannerParems = {
        pageSize:4,
        currPage:1
      }
    return ajax.get(url.banner_home,bannerParems);
}
export function userLogin(userParems){
    return ajax.post(url.login,userParems);
}
export function getActivity(currPage=1){
    const activityParems = {
        pageSize:2,
        currPage:currPage
      }
    return ajax.get(url.activity_home,activityParems);
}